From: Keir Fraser Date: Mon, 31 Aug 2009 09:12:10 +0000 (+0100) Subject: xend: Greater verbosity on domain creation failure X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~13404 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=bf6b9756fa9376ec23d0348ac71bb3190479a494;p=xen.git xend: Greater verbosity on domain creation failure Attached patch makes error reporting more verbose when xc.domain_create() fails or raises an Exception. Signed-off-by: Christoph Egger --- diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index 5e634b3e2b..f5c9bdac94 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -2408,10 +2408,13 @@ class XendDomainInfo: # may get here if due to ACM the operation is not permitted if security.on() == xsconstants.XS_POLICY_ACM: raise VmError('Domain in conflict set with running domain?') + log.exception(e) - if self.domid < 0: - raise VmError('Creating domain failed: name=%s' % - self.info['name_label']) + if not self.domid or self.domid < 0: + str = 'Creating domain failed: name=%s' % self.info['name_label'] + if self.domid: + str += ', error=%i' % int(self.domid) + raise VmError(str) self.dompath = GetDomainPath(self.domid)